package com.educate.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author yjj
 * @date 2021/11/6
 * @description:  用户Dao
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Long id;
    @NotBlank(message = "用户名不能为空！")
    private String username;
    @NotBlank(message = "密码不能为空！")
    private String password;
    private String fullName;
    private String avatar;
    private Integer phone;
    private String email;
    private String address;
}
